package com.zheng.rpc.remoting.transport;

import com.zheng.rpc.extensions.SPI;
import com.zheng.rpc.remoting.dto.RpcRequest;

/**
 * 转发请求
 */
@SPI
public interface RpcRequestTransport {
    /**
     * send rpc request to server and get result
     *
     * @param rpcRequest message body
     * @return data from server
     */
    Object sendRpcRequest(RpcRequest rpcRequest);
}
